package stud.mpgame.old.game;

import stud.mpgame.network.MessageDescription;

public class GameWorldDescription extends MessageDescription {

    private static final int ID = 0;

    public static final int GAME_WORLD_ID = 0;

    public int getID() {
        return ID;
    }

    private static GameWorldDescription instance = null;

    private GameWorldDescription() {
        this.registerUserObject(GAME_WORLD_ID, GameWorld.class);
    }

    public static GameWorldDescription getInstance() {
        if(instance == null) {
            instance = new GameWorldDescription();
            MessageDescription.registerDescription(instance);
        }
        return instance;
    }

}
